/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modele;

import java.util.Collection;
import java.util.TreeSet;

/**
 *
 * @author tvuong
 */
public class Spe implements Comparable<Spe> {

    private String spe;
    private Collection<Med> lesMed = new TreeSet<Med>();

    public Spe(String spe) {
        this.spe = spe;
        
    }

    public Collection<Med> getLesMed() {
        return lesMed;
    }

    public String getSpe() {
        return spe;
    }

    void addUnMed(Med unMed) {
        lesMed.add(unMed);
    }
    
    @Override
    public int compareTo(Spe t) {
        return spe.compareTo(t.spe);
    }
}
